package com.lonely.common.config;

import com.lonely.common.core.domain.oss.MinIoParamBean;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @date: 2021-12-03 13:05
 * @author: ztkj-hzb
 * @description: minio配置
 **/
@Data
@Configuration
public class MinIoConfig {


    /**
     * 本地oss配置
     *
     * @return
     */
    @Bean
    @ConfigurationProperties(prefix = "local.minio")
    public MinIoParamBean localMinIoParamBean() {
        return new MinIoParamBean();
    }


}
